package com.ljx.blog.user.controller;

import com.ljx.blog.common.domain.vo.resp.ApiResult;
import com.ljx.blog.user.domain.vo.resp.AdminOptionsResp;
import com.ljx.blog.user.service.AdminService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-10-20  14:38
 */
@Api(tags = "后台管理接口")
@RestController
@RequestMapping("/admin")
public class AdminController {

    @Autowired
    private AdminService adminService;

    @ApiOperation("获取管理页面的选项")
    @GetMapping("/options")
    public ApiResult<AdminOptionsResp> getOpts(){
        return ApiResult.success(adminService.getOpts());
    }


}
